package com.dsh.userSetting.service;

import com.dsh.userSetting.entity.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AgreementService {
    /**
     * 查询用户注册
     * @return
     */
    UserAgreementVo selectUserAgreement(UserAgreementVo userAgreementVo);
    UserPrivacyVo selectUserPrivacy(UserPrivacyVo userPrivacyVo);
    UserRechargeVo selectUserRecharge(UserRechargeVo userRechargeVo);
    UserLevelVo selectUserLevel(UserLevelVo userLevelVo);
    UserUpgradeVo selectUserUpgrade(UserUpgradeVo userUpgradeVo);

    /**
     * 查看所有的会员升级规则
     * @return
     */
    List<ConditionsVo> selectAll();
    /**
     * 增加会员升级规则
     */
    int insertRule(ConditionsVo conditionsVo);
    /**
     * 根据id査找升级规则
     * @param id
     * @return
     */
    ConditionsVo selectAllById(int id);
    /**
     * 修改规则
     * @param id
     * @return
     */
     int updateRule( ConditionsVo conditionsVo);
    /**
     * 查找全部的策略
     */
    List<StrategyVo> selectAllStrategy();
    /**
     * 根据策略id查询充值赠送集合
     */
    List<RechargeAndGiftVo> selectRechargeAndGiftBySId(@Param("sId") int sId);
    /**
     * 修改充值赠送
     */
    void updateRechargeAndGift(List<RechargeAndGiftVo> rechargeAndGiftVos);
    /**
     * 根据adminId查询所在的机构
     *
     */
    List<AreaByAdminVo> selectAreaByAdminId(int uId);

    /**
     * 根据片区id查询门店
     */
    List<StoreAndAreaVo> selectStoreByAreaId(@Param("aId") int aId);
    /**
     /**
     * 修改门店所对应的策略
     */
    void updateStrategyToStore(List<StoreAndAreaVo> storeAndAreaVos);
}
